package com.ruoyi.base.domain;

import com.ruoyi.cems.domain.BmsBaseEntity;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 文件对象 base_file
 * 
 * @author ruoyi
 * @date 2024-07-25
 */
@Data
@ApiModel(description="文件对象")
public class BaseFile extends BmsBaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 文件路径 */
    @Excel(name = "文件路径")
    @ApiModelProperty("文件路径")
    private String filePath;

    /** 文件名称 */
    @Excel(name = "文件名称")
    @ApiModelProperty("文件名称")
    private String fileName;

    /** 访问地址 */
    @Excel(name = "访问地址")
    @ApiModelProperty("访问地址")
    private String url;

    /** 原文件名称 */
    @Excel(name = "原文件名称")
    @ApiModelProperty("原文件名称")
    private String originalFileName;

    /** 业务数据ID */
    @Excel(name = "业务数据ID")
    @ApiModelProperty("业务数据ID")
    private String bizObjectId;

    /** 模块 */
    @Excel(name = "模块")
    @ApiModelProperty("模块")
    private String model;

    /** 字段 */
    @Excel(name = "字段")
    @ApiModelProperty("字段")
    private String field;

    private Long size;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("ID", getID())
            .append("REVISION", getREVISION())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updatedBy", getUpdatedBy())
            .append("updatedTime", getUpdatedTime())
            .append("filePath", getFilePath())
            .append("fileName", getFileName())
            .append("url", getUrl())
            .append("originalFilenAme", getOriginalFileName())
            .append("bizObjectId", getBizObjectId())
            .append("model", getModel())
            .append("field", getField())
                .append("size", getSize())
            .toString();
    }
}
